﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;


namespace Neural
{
    class Programm
    {
        /** 
         * @Author harpserg@gmail.com
         * @description
         * Main project class.
         */
        static int Main(string[] args)
        {
            Console.WriteLine("Model brains, not Boobs!"+ "\n");

            SeriesUtils temp = new SeriesUtils();

            //temp.NormalizeSeries(@"D:\dev\projects\neural\data\107041804.txt", @"D:\dev\projects\neural\data\107041804n.txt");

            //temp.SelectColumn(@"D:\dev\projects\neural\svn\series\107036401.txt", @"D:\dev\projects\neural\svn\series\107036401-1.txt", 1);
            //temp.ThinOutFile(@"D:\dev\projects\neural\svn\series\107036401-1.txt", @"D:\dev\projects\neural\svn\series\107036401-1-6.txt", 10);
            temp.CreateTrainingFile(@"D:\dev\projects\neural\data\testing", @"D:\dev\projects\neural\data\testing\training.txt");
            
            ////example
            ////LDConverter.convertFile(38, 1, 1, 1, @"E:/neural/test.txt");
            ////LDConverter.convertAllTXTFromDir(38, 6, 30, 30, @"E:/neural");
            
            //BetNet net1 = new BetNet( new uint[] {6, 6, 6} );
            ///*
            //Console.WriteLine("1");
            //net1.trainOnFile(@"E:/neural/38_1_1_1_test.fni");
            //Console.WriteLine("2");
            //net1.saveNet(@"E:/neural/38_1_1_1_test.net");
            //Console.WriteLine("3");
            //*/
            //////////////
            ///*
            //StreamWriter outfile = new StreamWriter(@"E:/neural/posl.txt");
            //for (double x = 1; x < 10000; x++ )
            //{
            //    double n = x / 10000;
            //    string str = String.Format("{0} {1} {2} {3} {4} {5}", n, n + 0.0001, n + 0.0002, n + 0.0003, n + 0.0004, n + 0.0005);
            //    outfile.WriteLine(str);
            //    Console.WriteLine(x);
            //}
            //*/
            /////////////////////////
            


            
            //net1.openNet(@"E:/neural/38_1_1_1_test.net");

            //double[] res = net1.getAnswer("0.001 0.002 0.003 0.004 0.005 0.006");
            //foreach (double n in res)
            //{
            //    Console.Write(n + " ");
            //}

            Console.WriteLine("END");
            Console.ReadLine();
            return 0;
        } 

    }
}
